import request from '@/utils/request';

export async function getCustomMessage(params) {
  return request(`/api/custom/all/`, {
    params,
  });
}
export async function getContent(params) {
  return request(`/api/custom/content/${params.id}`);
}
export async function getPlaceHolder(params) {
  return request(`/api/placeHolder/query`);
}
export async function deleteCustomMessage(params) {
  return request(`/api/custom/delete`, {
    method: 'POST',
    data: params,
  });
}
export async function addCustomMessage(params) {
  return request(`/api/custom/add`, {
    method: 'POST',
    data: params,
  });
}
export async function updateCustomMessage(params) {
  return request(`/api/custom/update`, {
    method: 'POST',
    data: params,
  });
}
